Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdlib: fix some enum definitions #11956

Merged
merged 1 commit into from
May 18, 2024
Merged

stdlib: fix some enum definitions #11956

merged 1 commit into from
May 18, 2024

Conversation

hamdanal
Copy link
Contributor

I was pointed recently to this issue python/typing-council#11 which suggests changing the interpretation of annotated but not assigned attributes of enums to no longer be considered members of the enumeration so I looked in the stdlib for places where this exists and changed the annotations to assignments.

Note that there is a PR implementing this change in mypy python/mypy#17207

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit b570af5 into python:main May 18, 2024
54 checks passed
@hamdanal hamdanal deleted the enum branch May 18, 2024 11:04
@hamdanal
Copy link
Contributor Author

Is there any downside to changing this in third party stubs that I am not aware of?

@srittau
Copy link
Collaborator

srittau commented May 18, 2024

I don't think so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants